export const dynasty = [
	{id: 1, name: '春秋战国'},
	{id: 2, name: '秦汉'},
	{id: 3, name: '魏晋南北朝'},
	{id: 4, name: '唐制'},
	{id: 5, name: '宋制'},
	{id: 6, name: '明制'},
	{id: 7, name: '清制'},
	{id: 8, name: '异域风情'},
	{id: 9, name: '童装'},
]
export const dynastyFilter = (id)=> {
	if(!id) return '其他'
	const findObj = dynasty.find(item=>item.id===id)
	if(findObj){
		return findObj.name
	}
}

export const orderType = [
	{id: 1, name: '租赁'},
	{id: 2, name: '售卖'},
	{id: 3, name: '摄影'},
]
export const orderTypeFilter = (id)=> {
	if(!id) return
	const findObj = orderType.find(item=>item.id===id)
	if(findObj){
		return findObj.name
	}
}
export const numFilter = (num)=>{
	return Number(num.toFixed(2))
}